package com.retail.member.controller;

import com.retail.core.entity.result.Result;
import com.retail.help.entity.vo.RetailHelpVo;
import com.retail.member.client.HelpClient;
import com.retail.member.client.ProxyMechanismCategoryClient;
import com.retail.proxy.entity.vo.ProxyMechanismCategoryVo;
import com.retail.proxy.service.ProxyMechanismCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(value = "代理等级", tags = "代理等级API")
@RestController
@RequestMapping("api/proxyMechanismCategory")
public class ProxyMechanismCategoryApiController {

    private final ProxyMechanismCategoryClient proxyMechanismCategoryClient;

    public ProxyMechanismCategoryApiController(ProxyMechanismCategoryClient proxyMechanismCategoryClient) {
        this.proxyMechanismCategoryClient = proxyMechanismCategoryClient;
    }
    
    @ApiOperation("代理等级列表")
    @GetMapping("findMechanismCategoryQtCurrentLevel/{adminId}")
    public Result<List<ProxyMechanismCategoryVo>> findMechanismCategoryQtCurrentLevel(@PathVariable("adminId") Long adminId) {
        return proxyMechanismCategoryClient.findMechanismCategoryQtCurrentLevel(adminId);
    }

}
